Optimal. Leaf size=56 \[ \frac{d (a+b x)^{n+1}}{b (n+1)}-\frac{c (a+b x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{b x}{a}+1\right )}{a (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0155928, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {80, 65} \[ \frac{d (a+b x)^{n+1}}{b (n+1)}-\frac{c (a+b x)^{n+1} \, _2F_1\left (1,n+1;n+2;\frac{b x}{a}+1\right )}{a (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 80
Rule 65
Rubi steps
\begin{align*} \int \frac{(a+b x)^n (c+d x)}{x} \, dx &=\frac{d (a+b x)^{1+n}}{b (1+n)}+c \int \frac{(a+b x)^n}{x} \, dx\\ &=\frac{d (a+b x)^{1+n}}{b (1+n)}-\frac{c (a+b x)^{1+n} \, _2F_1\left (1,1+n;2+n;1+\frac{b x}{a}\right )}{a (1+n)}\\ \end{align*}
Mathematica [A] time = 0.0131629, size = 45, normalized size = 0.8 \[ \frac{(a+b x)^{n+1} \left (a d-b c \, _2F_1\left (1,n+1;n+2;\frac{b x}{a}+1\right )\right )}{a b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.021, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( bx+a \right ) ^{n} \left ( dx+c \right ) }{x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (d x + c\right )}{\left (b x + a\right )}^{n}}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.37829, size = 170, normalized size = 3.04 \begin{align*} - \frac{b^{n} c n \left (\frac{a}{b} + x\right )^{n} \Phi \left (1 + \frac{b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{\Gamma \left (n + 2\right )} - \frac{b^{n} c \left (\frac{a}{b} + x\right )^{n} \Phi \left (1 + \frac{b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{\Gamma \left (n + 2\right )} + d \left (\begin{cases} a^{n} x & \text{for}\: b = 0 \\\frac{\begin{cases} \frac{\left (a + b x\right )^{n + 1}}{n + 1} & \text{for}\: n \neq -1 \\\log{\left (a + b x \right )} & \text{otherwise} \end{cases}}{b} & \text{otherwise} \end{cases}\right ) - \frac{b b^{n} c n x \left (\frac{a}{b} + x\right )^{n} \Phi \left (1 + \frac{b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} - \frac{b b^{n} c x \left (\frac{a}{b} + x\right )^{n} \Phi \left (1 + \frac{b x}{a}, 1, n + 1\right ) \Gamma \left (n + 1\right )}{a \Gamma \left (n + 2\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d x + c\right )}{\left (b x + a\right )}^{n}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]